package com.cd.questionBank.jpa.domain;

import com.cd.common.enums.QuestionBankCategoryEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "question_bank")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "题库")
public class QuestionBank {

    @Id
    @GeneratedValue(strategy = javax.persistence.GenerationType.IDENTITY)
    @Column(name = "id",nullable = false)
    private Long id;

    //name
    @Column(name = "name",nullable = false)
    private String name;

    //value
    @Column(name = "value",length = 1000)
    private String value;

    //url
    @Column(name = "url")
    private String url;

    //category
    @Column(name = "category")
    private String category;

    //last_study_time
    @Column(name = "last_study_time")
    private Date lastStudyTime;
}
